
#ifndef PROPERTYBOARD_H
#define PROPERTYBOARD_H

#include <BPhysics>
#include <BNode>
#include <BButton>
#include <BComboBox>
#include <BRealSpinBox>
#include <BCheckBox>
#include <BLineEdit>

using namespace BWE;

class PropertyBoard : public BWidget
{
	BOBJECT(PropertyBoard);
public:
	PropertyBoard(BWidget* parent = 0);
	~PropertyBoard();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

	void slotPositionEditFinished(BObject* object, const BValue& value);
	void slotRotateEditFinished(BObject* object, const BValue& value);

	void slotMassEditFinished(BObject* object, const BValue& value);
	void slotForceEditFinished(BObject* object, const BValue& value);

private:
	BNode*					_node;

	BGroupBox*				_nodeGroupBox;
	BLineEdit*				_positionEdit;
	BLineEdit*				_rotateEdit;

	//Physics
	BGroupBox*				_physicsGroupBox;
	BRealSpinBox*			_massSpinBox;
	BRealSpinBox*			_forceXSpinBox;
	BRealSpinBox*			_forceYSpinBox;
	BRealSpinBox*			_forceZSpinBox;

};

#endif
